﻿#ifndef MAPPER_TEST_RTT_H
#define MAPPER_TEST_RTT_H

#include <qobject.h>
#include "ObjAutoInject.h"

class DataBaseConnector;
class Mapper_Test_RTT : public QObject,public ObjAutoInject
{
  Q_OBJECT
private://property
  const QString string_dataBaseName="test_rtt";
  const QString string_id="id";
  const QString string_msgId="msgId";
  const QString string_rtt="rtt";
  const QString string_interval="interval";
  const QString string_now="now";
  const QString string_bw="bw";
  const QString string_rtt_ave="rtt_ave";
  const QString string_rto="rto";
  const QString string_bw_max="bw_max";
private://dependency
  DataBaseConnector* dataBaseConnector=Q_NULLPTR;
public:
  explicit Mapper_Test_RTT();
  virtual ~Mapper_Test_RTT();
signals:
public:
  void record(ushort msgId, ushort rtt, int interval, int bw,int rtt_ave,int rto,int bw_max);
public://geter and seter
  DataBaseConnector* getDataBaseConnector() const;
  Mapper_Test_RTT* setDataBaseConnector(DataBaseConnector* const dataBaseConnector);
public:
  virtual void objectAutoInjection(QHash<QString, QObject *> *objMap) override;
};

#endif // MAPPER_TEST_RTT_H
